import request from '@/utils/request'

export function add(token, data) {
  return request({
    url: 'merchant/merchant_config/add',
    method: 'post',
    params: { token },
    data
  })
}
export function edit(token, data) {
  return request({
    url: 'merchant/merchant_config/edit',
    method: 'post',
    params: { token },
    data
  })
}
export function del(token, data) {
  return request({
    url: 'merchant/merchant_config/delete ',
    method: 'post',
    params: { token },
    data
  })
}
export function info(token, data) {
  return request({
    url: 'merchant/merchant_config/info',
    method: 'post',
    params: { token },
    data
  })
}
export function getList(token, data) {
  return request({
    url: 'merchant/merchant_config/get_list',
    method: 'post',
    params: { token },
    data
  })
}
export function getMerchantListSelect(token, data) {
  return request({
    url: 'merchant/merchant/get_merchant_list_select',
    method: 'post',
    params: { token },
    data
  })
}
export function updateMerchantConfig(token, data) {
  return request({
    url: '/merchant/merchant_config/add',
    method: 'post',
    params: { token },
    data
  })
}
export function deleteMerchant(token, data) {
  return request({
    url: '/merchant/merchant_config/delete',
    method: 'post',
    params: { token },
    data
  })
}
export function editMerchant(token, data) {
  return request({
    url: '/merchant/merchant_config/edit',
    method: 'post',
    params: { token },
    data
  })
}
